private ParseTree parseAmbientNamespaceElement() { if (peekInterfaceDeclaration()) { return parseInterfaceDeclaration(); } if (peekExportDeclaration()) { return parseExportDeclaration(true); } return parseAmbientDeclarationHelper(); }
private ParseTree parseAmbientNamespaceElement() { if (peekInterfaceDeclaration()) { return parseInterfaceDeclaration(); } if (peekExportDeclaration()) { return parseExportDeclaration(true); } return parseAmbientDeclarationHelper(); }
private ParseTree parseScriptElement() { if (peekImportDeclaration()) { return parseImportDeclaration(); } if (peekExportDeclaration()) { return parseExportDeclaration(false); } if (peekInterfaceDeclaration()) { return parseInterfaceDeclaration(); } if (peekEnumDeclaration()) { return parseEnumDeclaration(); } if (peekTypeAlias()) { return parseTypeAlias(); } if (peekAmbientDeclaration()) { return parseAmbientDeclaration(); } if (peekNamespaceDeclaration()) { return parseNamespaceDeclaration(false); } return parseSourceElement(); }
private ParseTree parseScriptElement() { if (peekImportDeclaration()) { return parseImportDeclaration(); } if (peekExportDeclaration()) { return parseExportDeclaration(false); } if (peekInterfaceDeclaration()) { return parseInterfaceDeclaration(); } if (peekEnumDeclaration()) { return parseEnumDeclaration(); } if (peekTypeAlias()) { return parseTypeAlias(); } if (peekAmbientDeclaration()) { return parseAmbientDeclaration(); } if (peekNamespaceDeclaration()) { return parseNamespaceDeclaration(false); } return parseSourceElement(); }
break; case INTERFACE: export = parseInterfaceDeclaration(); needsSemiColon = false; break;
break; case INTERFACE: export = parseInterfaceDeclaration(); needsSemiColon = false; break;