Skip to content

Update to analyzer 2.0 #2734

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions lib/src/generator/templates.runtime_renderers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11323,7 +11323,7 @@ class _Renderer_Package extends RendererBase<Package> {
}
}

String renderIndex(PackageTemplateData context, Template template) {
String renderError(PackageTemplateData context, Template template) {
var buffer = StringBuffer();
_render_PackageTemplateData(context, template.ast, template, buffer);
return buffer.toString();
Expand Down Expand Up @@ -11525,7 +11525,7 @@ class _Renderer_PackageTemplateData extends RendererBase<PackageTemplateData> {
}
}

String renderError(PackageTemplateData context, Template template) {
String renderIndex(PackageTemplateData context, Template template) {
var buffer = StringBuffer();
_render_PackageTemplateData(context, template.ast, template, buffer);
return buffer.toString();
Expand Down Expand Up @@ -14757,25 +14757,25 @@ const _invisibleGetters = {
'unnamedConstructor'
},
'CommentReferable': {
'packageGraph',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:( At some point I tried to make this file stable, but it appears there is definitely still instability.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah. I didn't look closely but indeed there is.... no worries, it's hard to nail this down. We'll get there.

'scope',
'href',
'referenceChildren',
'referenceParents',
'referenceGrandparentOverrides',
'referenceName',
'library',
'element',
'packageGraph'
'element'
},
'CompilationUnitElement': {
'hashCode',
'runtimeType',
'accessors',
'classes',
'enclosingElement',
'enums',
'extensions',
'functions',
'functionTypeAliases',
'hasLoadLibraryFunction',
'lineInfo',
'mixins',
Expand Down Expand Up @@ -14895,6 +14895,7 @@ const _invisibleGetters = {
'hasRequired',
'hasSealed',
'hasUseResult',
'hasVisibleForOverriding',
'hasVisibleForTemplate',
'hasVisibleForTesting',
'id',
Expand All @@ -14908,6 +14909,7 @@ const _invisibleGetters = {
'name',
'nameLength',
'nameOffset',
'nonSynthetic',
'session',
'source'
},
Expand Down Expand Up @@ -14936,6 +14938,7 @@ const _invisibleGetters = {
'isSealed',
'isTarget',
'isUseResult',
'isVisibleForOverriding',
'isVisibleForTemplate',
'isVisibleForTesting'
},
Expand Down Expand Up @@ -14965,6 +14968,7 @@ const _invisibleGetters = {
'hasRequired',
'hasSealed',
'hasUseResult',
'hasVisibleForOverriding',
'hasVisibleForTemplate',
'hasVisibleForTesting',
'id',
Expand All @@ -14979,6 +14983,7 @@ const _invisibleGetters = {
'name',
'nameLength',
'nameOffset',
'nonSynthetic',
'session',
'source',
'substitution',
Expand Down Expand Up @@ -15037,15 +15042,13 @@ const _invisibleGetters = {
'FunctionType': {
'hashCode',
'runtimeType',
'element',
'namedParameterTypes',
'normalParameterNames',
'normalParameterTypes',
'optionalParameterNames',
'optionalParameterTypes',
'parameters',
'returnType',
'typeArguments',
'typeFormals'
},
'FunctionTypedElement': {
Expand All @@ -15056,6 +15059,7 @@ const _invisibleGetters = {
'type'
},
'GetterSetterCombo': {
'enclosingElement',
'getter',
'setter',
'annotations',
Expand Down Expand Up @@ -15091,8 +15095,7 @@ const _invisibleGetters = {
'readOnly',
'readWrite',
'writeOnly',
'referenceChildren',
'enclosingElement'
'referenceChildren'
},
'HashMap': {'hashCode', 'runtimeType'},
'Inheritable': {
Expand Down Expand Up @@ -15127,6 +15130,7 @@ const _invisibleGetters = {
'isNonNullableByDefault',
'languageVersion',
'loadLibraryFunction',
'name',
'parts',
'prefixes',
'publicNamespace',
Expand Down Expand Up @@ -15183,6 +15187,7 @@ const _invisibleGetters = {
'hasRequired',
'hasSealed',
'hasUseResult',
'hasVisibleForOverriding',
'hasVisibleForTemplate',
'hasVisibleForTesting',
'id',
Expand All @@ -15197,6 +15202,7 @@ const _invisibleGetters = {
'name',
'nameLength',
'nameOffset',
'nonSynthetic',
'session',
'source',
'substitution'
Expand Down Expand Up @@ -15323,6 +15329,7 @@ const _invisibleGetters = {
'hasRequired',
'hasSealed',
'hasUseResult',
'hasVisibleForOverriding',
'hasVisibleForTemplate',
'hasVisibleForTesting',
'id',
Expand All @@ -15337,6 +15344,7 @@ const _invisibleGetters = {
'name',
'nameLength',
'nameOffset',
'nonSynthetic',
'session',
'source',
'substitution',
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ environment:
sdk: '>=2.11.99 <3.0.0'

dependencies:
analyzer: ^1.7.1
analyzer: ^2.0.0
args: ^2.0.0
charcode: ^1.2.0
collection: ^1.2.0
Expand All @@ -17,7 +17,7 @@ dependencies:
html: ^0.15.0
logging: ^1.0.0
markdown: ^4.0.0
meta: ^1.3.0
meta: ^1.7.0
package_config: ^2.0.0
path: ^1.3.0
pub_semver: ^2.0.0
Expand Down