Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
// BSD-style license that can be found in the LICENSE file.

import '../../../ast/declarations/built_in/built_in_declaration.dart';
import '../../_core/json.dart';
import '../../../config.dart';
import '../../_core/parsed_symbolgraph.dart';
import '../../_core/utils.dart';

BuiltInDeclaration? tryParseBuiltInDeclaration(Json symbolJson) {
final id = parseSymbolId(symbolJson);
BuiltInDeclaration? tryParseBuiltInDeclaration(ParsedSymbol parsedSymbol) {
if (parsedSymbol.source != builtInInputConfig) return null;
final id = parseSymbolId(parsedSymbol.json);
if (!id.startsWith('c:objc(cs)')) return null;
return BuiltInDeclaration(id: id, name: parseSymbolName(symbolJson));
return BuiltInDeclaration(id: id, name: parseSymbolName(parsedSymbol.json));
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Declaration parseDeclaration(

final symbolJson = parsedSymbol.json;

final builtIn = tryParseBuiltInDeclaration(symbolJson);
final builtIn = tryParseBuiltInDeclaration(parsedSymbol);
if (builtIn != null) {
return parsedSymbol.declaration = builtIn;
}
Expand Down
Loading