[CFE] Make synthetic __loadLibrary procedure static

Change-Id: I23fa164059b214bcc763ac582aafcf86dc1964d4
Reviewed-on: https://dart-review.googlesource.com/37121
Reviewed-by: Kevin Millikin <kmillikin@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
This commit is contained in:
Alexander Markov 2018-01-30 17:48:59 +00:00 committed by commit-bot@chromium.org
parent f8596607bb
commit ec6eb06d2f

View file

@ -41,7 +41,7 @@ class LoadLibraryBuilder extends Builder {
String prefix = expression.import.name;
tearoff = new Procedure(new Name('__loadLibrary_$prefix', parent.target),
ProcedureKind.Method, new FunctionNode(new ReturnStatement(expression)),
fileUri: parent.target.fileUri)
fileUri: parent.target.fileUri, isStatic: true)
..fileOffset = charOffset;
return tearoff;
}