Python symbol.dotted_as_name() Examples
The following are 15
code examples of symbol.dotted_as_name().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
symbol
, or try the search function
.
Example #1
Source File: transformer.py From ironpython2 with Apache License 2.0 | 5 votes |
def com_dotted_as_name(self, node): assert node[0] == symbol.dotted_as_name node = node[1:] dot = self.com_dotted_name(node[0][1:]) if len(node) == 1: return dot, None assert node[1][1] == 'as' assert node[2][0] == token.NAME return dot, node[2][1]
Example #2
Source File: transformer.py From BinderFilter with MIT License | 5 votes |
def com_dotted_as_name(self, node): assert node[0] == symbol.dotted_as_name node = node[1:] dot = self.com_dotted_name(node[0][1:]) if len(node) == 1: return dot, None assert node[1][1] == 'as' assert node[2][0] == token.NAME return dot, node[2][1]
Example #3
Source File: transformer.py From oss-ftp with MIT License | 5 votes |
def com_dotted_as_name(self, node): assert node[0] == symbol.dotted_as_name node = node[1:] dot = self.com_dotted_name(node[0][1:]) if len(node) == 1: return dot, None assert node[1][1] == 'as' assert node[2][0] == token.NAME return dot, node[2][1]
Example #4
Source File: import_statement.py From Jandroid with BSD 3-Clause "New" or "Revised" License | 5 votes |
def Annotate(cls, symbol_type, children): if (symbol_type != symbol.dotted_as_name and symbol_type != symbol.import_as_name): return None return cls(symbol_type, children)
Example #5
Source File: import_statement.py From Jandroid with BSD 3-Clause "New" or "Revised" License | 5 votes |
def values(self): dotted_as_names = self.children[1] return tuple((dotted_as_name.name, dotted_as_name.alias) for dotted_as_name in dotted_as_names.children[::2])
Example #6
Source File: import_statement.py From Jandroid with BSD 3-Clause "New" or "Revised" License | 5 votes |
def Annotate(cls, symbol_type, children): if (symbol_type != symbol.dotted_as_name and symbol_type != symbol.import_as_name): return None return cls(symbol_type, children)
Example #7
Source File: import_statement.py From Jandroid with BSD 3-Clause "New" or "Revised" License | 5 votes |
def values(self): dotted_as_names = self.children[1] return tuple((dotted_as_name.name, dotted_as_name.alias) for dotted_as_name in dotted_as_names.children[::2])
Example #8
Source File: import_statement.py From Jandroid with BSD 3-Clause "New" or "Revised" License | 5 votes |
def Annotate(cls, symbol_type, children): if (symbol_type != symbol.dotted_as_name and symbol_type != symbol.import_as_name): return None return cls(symbol_type, children)
Example #9
Source File: transformer.py From Splunking-Crime with GNU Affero General Public License v3.0 | 5 votes |
def com_dotted_as_name(self, node): assert node[0] == symbol.dotted_as_name node = node[1:] dot = self.com_dotted_name(node[0][1:]) if len(node) == 1: return dot, None assert node[1][1] == 'as' assert node[2][0] == token.NAME return dot, node[2][1]
Example #10
Source File: transformer.py From medicare-demo with Apache License 2.0 | 5 votes |
def com_dotted_as_name(self, node): assert node[0] == symbol.dotted_as_name node = node[1:] dot = self.com_dotted_name(node[0][1:]) if len(node) == 1: return dot, None assert node[1][1] == 'as' assert node[2][0] == token.NAME return dot, node[2][1]
Example #11
Source File: transformer.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
def com_dotted_as_name(self, node): assert node[0] == symbol.dotted_as_name node = node[1:] dot = self.com_dotted_name(node[0][1:]) if len(node) == 1: return dot, None assert node[1][1] == 'as' assert node[2][0] == token.NAME return dot, node[2][1]
Example #12
Source File: transformer.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
def com_dotted_as_name(self, node): assert node[0] == symbol.dotted_as_name node = node[1:] dot = self.com_dotted_name(node[0][1:]) if len(node) == 1: return dot, None assert node[1][1] == 'as' assert node[2][0] == token.NAME return dot, node[2][1]
Example #13
Source File: transformer.py From PokemonGo-DesktopMap with MIT License | 5 votes |
def com_dotted_as_name(self, node): assert node[0] == symbol.dotted_as_name node = node[1:] dot = self.com_dotted_name(node[0][1:]) if len(node) == 1: return dot, None assert node[1][1] == 'as' assert node[2][0] == token.NAME return dot, node[2][1]
Example #14
Source File: transformer.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
def com_dotted_as_name(self, node): assert node[0] == symbol.dotted_as_name node = node[1:] dot = self.com_dotted_name(node[0][1:]) if len(node) == 1: return dot, None assert node[1][1] == 'as' assert node[2][0] == token.NAME return dot, node[2][1]
Example #15
Source File: transformer.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
def com_dotted_as_name(self, node): assert node[0] == symbol.dotted_as_name node = node[1:] dot = self.com_dotted_name(node[0][1:]) if len(node) == 1: return dot, None assert node[1][1] == 'as' assert node[2][0] == token.NAME return dot, node[2][1]