public ImportStatementCompletionProvider( ICompletionDataGenerator gen, ImportStatement.Import imp) : base(gen) { this.imp = imp; }
public ImportStatementCompletionProvider( ICompletionDataGenerator gen, ImportStatement.ImportBindings imbBind) : base(gen) { this.impBind = imbBind; imp = impBind.Module; }
public ImportSymbolAlias(ImportStatement impStmt, ImportStatement.Import imp) { OriginalImportStatement = impStmt; IsModuleAlias = true; Name = imp.ModuleAlias; Type = imp.ModuleIdentifier; IsAlias = true; }
public ModuleAliasNode(ImportStatement impStmt, ImportStatement.Import imp, IBlockNode parentNode) : base(impStmt, parentNode) { this.Import = imp; Name = imp.ModuleAlias.Id; Location = NameLocation = imp.ModuleIdentifier.Location; Type = imp.ModuleIdentifier; }
public virtual void VisitImport(ImportStatement.Import i) { if (i.ModuleAlias != null) { i.ModuleAlias.Accept(this); } if (i.ModuleIdentifier != null) { i.ModuleIdentifier.Accept(this); } }
public SelectiveImportCompletionProvider(ICompletionDataGenerator gen, ImportStatement.Import imp) : base(gen) { import = imp; }
ImportStatement.Import _Import() { var import = new ImportStatement.Import(); // ModuleAliasIdentifier if (Lexer.CurrentPeekToken.Kind == Assign) { if(Expect(Identifier)) import.ModuleAlias = new IdentifierDeclaration(t.Value) { Location = t.Location, EndLocation = t.EndLocation }; Step(); } import.ModuleIdentifier = ModuleFullyQualifiedName(); return import; }
ImportStatement.Import _Import() { var import = new ImportStatement.Import(); LastParsedObject = import; // ModuleAliasIdentifier if (Lexer.CurrentPeekToken.Kind == Assign) { if(Expect(Identifier)) import.ModuleAlias = t.Value; Step(); } import.ModuleIdentifier = ModuleFullyQualifiedName(); if (!IsEOF) LastParsedObject = null; return import; }
public override void VisitImport(ImportStatement.Import i) { if (IsIncompleteDeclaration(i.ModuleIdentifier)) { prv = new ImportStatementCompletionProvider(cdgen, i); halt = true; } else { curImport = i; base.VisitImport(i); } }